import Vue from 'vue'
import Router from 'vue-router'
import Install from '../pages/install'
import Chart from '../pages/chart'
import Login from '../components/login'
// import Index from '../index.html'
// import Sidebar from '@/components/sidebar'

// import CodeSection from '@/components/code-section'

// Vue.component(CodeSection.name, CodeSection)
Vue.use(Router)

export default new Router({
  routes: [
    { path: '/', name: '首页', component: Login },
    { path: '/install', name: '安装', component: Install },
    { path: '/chart/:type', name: '测试图表', component: Chart }
  ]
})
